package com.sinya.shoppingmall.bean;

/**
 * Created by Administrator on 2015/12/20.
 */
public class Constants {

    public static final String BASE_URL = "http://45.78.57.117:8080/market";

    // [+] 服务器返回的特定 Error Code

    public static final int ERROR_0001 = 1;
    public static final int ERROR_0002 = 2;
    public static final int ERROR_1530 = 1530;
    public static final int ERROR_1531 = 1531;
    public static final int ERROR_1532 = 1532;
    public static final int ERROR_1533 = 1533;
    public static final int ERROR_1534 = 1534;
    public static final int ERROR_1535 = 1535;
    public static final int ERROR_1536 = 1536;
    public static final int ERROR_1537 = 1537;
    public static final int ERROR_1538 = 1538;

    // [-] 服务器返回的特定 Error Code
    // [+] Sort Type

    /**
     * 按照 销量 降序排序
     */
    public static final String SALE_DOWN = "saleDown";

    /**
     * 按照 价格 升序排序
     */
    public static final String PRICE_UP = "priceUp";

    /**
     * 按照 价格 降序排序
     */
    public static final String PRICE_DOWN = "priceDown";

    /**
     * 按照 评价 降序排序
     */
    public static final String COMMENT_DOWN = "commentDown";

    /**
     * 按照 上架时间 降序排序
     */
    public static final String SHELVES_DOWN = "shelvesDown";

    // [-] Sort Type
    // [+] Bundle

    /**
     * 通用的bundle字段 用于传递标题
     */
    public static final String BUNDLE_FIELD_TITLE = "fieldTitle";

    /**
     * 通用的bundle字段 用于传递int ID字段
     */
    public static final String BUNDLE_FIELD_INDEX = "fieldIndex";

    // [-] Bundle
    // [+] 所有跳转的页面ID 唯一性 从0001开始

    /**
     * 新品发布
     */
    public static final int NEW_SALE = 0001;

    /**
     * 打折促销
     */
    public static final int DISCOUNT = 0002;

    /**
     * 限时抢购
     */
    public static final int PANIC_BUYING = 0003;

    /**
     * 换季降价
     */
    public static final int SEASONAL = 0004;

    /**
     * 正品专柜
     */
    public static final int BRAND = 0005;

    // [-] 所有跳转的页面ID 唯一性 从0001开始
    // [+] 某些路径

    public static final String USER_PICTURE_NAME = "/userIcon.jpg";

    // [-] 某些路径
}
